using System;
using Gendarme;
using Commander.Core;
using Commander.Core.AI;

namespace BLARG
{
	class MainClass
	{
		public static void Main (string[] args)
		{
			string[] vargs = new string[3];
			vargs[0] = "--set";
			vargs[1] = "smells";
			vargs[2] = "/home/trevor/svn/serg-commander/trunk/SmellyCode/SmellyCode/bin/Debug/SmellyCode.exe";
			var defects = ConsoleRunner.CommanderExec (vargs);// new GendarmeRunnery(this.assemblyPath.Text).Execute();
			//numberOfDefects.Content = defects.Count.ToString ();
			//defectLister.ProcessDefects (defects);
			Encoding enc = new Encoding (defects);
			//"C:\Users\boguste\Documents\sekele\sergcommander\trunk\Commander\Commander.Test\SubtleDuplication.txt
			enc.FilePath = @"/home/trevor/svn/serg-commander/trunk/SmellyCode/SmellyCode/Subtle/SubtleDuplication.cs";
			var best = CommanderGA.Launch (0.1, 0.9, 10, defects, 1.0, enc.FilePath);
			// enc.EvaluateFitness();
			Console.WriteLine(best.ToString ());

			Console.WriteLine ("Hello World!");
		}
	}
}
